local Class = require('lua.lang.Class')
local FunctionIndexMapper = require('lua.decompiler.virtual.code.mapper.FunctionIndexMapper')

--- @class DefaultFunctionIndexMapper : FunctionIndexMapper
local DefaultFunctionIndexMapper = Class {
	__extends = FunctionIndexMapper
}

--- @return DefaultFunctionIndexMapper
function DefaultFunctionIndexMapper:new()
	--- @type DefaultFunctionIndexMapper
	local o = {}
	return setmetatable(o, DefaultFunctionIndexMapper)
end

--- @param i number
function DefaultFunctionIndexMapper:get(i)
	return tostring(i)
end

--- @return string
function DefaultFunctionIndexMapper:getFunctionSign()
	return 'F'
end

--- @return string
function DefaultFunctionIndexMapper:getFIndex(i)
	return self:get(i)
end

return DefaultFunctionIndexMapper